<?php header("Content-type: text/html; charset=utf-8");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>
		<?php __('Epicrisis:'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css('rm');
		echo $scripts_for_layout;
		echo $html->meta('icon','/images/favicon.ico', array('type' =>'icon'));

		echo $javascript->link('prototype-1.7');
		echo $javascript->link('scriptaculous');
		echo $javascript->link('jquery-1.3.2.min'); 
	?>

<script language="javascript" type="text/javascript">
<!--
	function seleccionarProblema(nombre_problema, id_problema){
		window.opener.document.getElementById('ProblemName').value = nombre_problema;
		window.opener.document.getElementById('PeopleProblemProblemId').value = id_problema;
		opener.focus();
		window.close();
	}

	function seleccionarPersona(nombre_persona, id_persona){
		window.opener.document.getElementById('PersonName').value = nombre_persona;
		window.opener.document.getElementById('PersonId').value = id_persona;
		opener.focus();
		window.close();
	}

	function seleccionarMedicamento(nombre_medicamento, id_medicamento){
		window.opener.document.getElementById('VademecumName').value = nombre_medicamento;
		window.opener.document.getElementById('PeopleVademecumVademecumId').value = id_medicamento;
		opener.focus();
		window.close();
	}

	function seleccionarPractica(nombre_practica, id_practica){
		window.opener.document.getElementById('PracticeName').value = nombre_practica;
		window.opener.document.getElementById('PeoplePracticePracticeId').value = id_practica;
		opener.focus();
		window.close();
	}

//-->
</script>

</head>
<body style="background: none;">
<script type="text/javascript">$j = jQuery.noConflict();</script> 
</script>

	<!-- start header -->
	<div id="logo_logueado">
		<h1><img src="/images/logo.png" border="0" width="140" align="absbottom"></h1>
	</div>
	<!-- end header -->
	<!-- start page -->
	<div id="page">
		<!-- start page -->
		<img src="/images/loading3.gif" id="loading_panel_derecho" style="display:none"/>
		<?php echo $this->Session->flash(); ?> 
		<?php echo $content_for_layout; ?>
	<!-- end page -->


		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end page -->
</body>
</html>